package com.mszlu.blog.service;


import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.UserVo;
import com.mszlu.blog.vo.params.BannedParam;
import com.mszlu.blog.vo.params.LoginParam;

public interface SysUserService {
    //根据作者id查询用户
    UserVo findUserById(Long authorId);

    //根据用户名和密码查询用户
    SysUser findUser(String account, String password);


    //根据token查询用户信息
    Result fingUserByToken(String token);

    //根据用户名查询数据库有无该用户
    SysUser findUserByAccount(String account);

    //插入  注册
    void save(SysUser sysUser);

    Result updatePwd(LoginParam param);

    Result bannedAccount(BannedParam bannedParam, String token);

    Result unlockAccount(Long uid);
}
